﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Clinica/MasterPageAtencion.master" 
    AutoEventWireup="true" CodeFile="wfAtencion.aspx.cs" Inherits="Ventas_wfAtencion" %>

<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>

<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxTabControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxClasses" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" namespace="CrystalDecisions.Web" tagprefix="CR" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentMenuSecundario" runat="Server">
    <li><a href="wfInterconsultaListado.aspx" class="">Interconsulta</a></li>
    <li><a href="wfAtencionListado.aspx" class="active">Atención</a></li>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ModuleTitleContent" runat="Server">
    Atención
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentEnlacesRapidos" runat="Server">
    <script type="text/javascript">
        function url() {
            //window.showModalDialog(...
            open('wfAdmisionBuscarPaciente.aspx', 'NewWindow', 'top=0,left=0,width=1150,height=400,status=yes,resizable=yes,scrollbars=yes');
        }
    </script>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="MainContent" runat="Server">
    <style type="text/css">
        .Filas
        {
            padding: 0.60em 1em;
        }
        .btns
        {
            width: 40%;
        }
        .style1
        {
            width: 100%;
        }
    </style>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <ul class="tabs primary">
                <li><a href="wfAtencionListado.aspx">Listado de Atenciones</a></li>
                <li class="active"><a href="wfAtencion.aspx?ope=C" class="">Registrar Atención</a></li>
                <li><a id="linkEnfermedadActual" runat="server" href="wfAtencionEnfermedadActual.aspx"
                    class="">Enfermedad Actual</a></li>
                <!--<li><a id="linkHistoriaPersonal" runat="server" href="wfAtencionHistoriaPersonal.aspx"
                    class="">Historia Personal</a></li>
                <li><a id="linkHistoriaSocial" runat="server" href="wfAtencionHistoriaSocial.aspx"
                    class="">Historia Social</a></li>-->
                <li><a id="linkExamenActividad" runat="server" href="wfAtencionExamenActividad.aspx"
                    class="">Examen Actividad</a></li>
                <li><a id="linkExamenEspecialidad" runat="server" href="wfAtencionExamenEspecialidad.aspx"
                    class="">Examen Especialidad</a></li>
                <li><a id="linkDiagnostico" runat="server" href="wfAtencionDiagnostico.aspx" class="">
                    Diagnostico</a></li>
            </ul>
            <h4>
                Registrar Atención</h4>
            <table width="99%">
                <tr>
                    <td>
                        <dx:ASPxPanel ID="ASPxPanel1" runat="server" Width="99%">
                            <PanelCollection>
                                <dx:PanelContent ID="PanelContent1" runat="server" SupportsDisabledAttribute="True">
                                    <table>
                                        <tr>
                                            <td>
                                                <dx:ASPxButton ID="btnAceptarAtencion" runat="server" ClientIDMode="AutoID" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                                                    CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                                                    Text="Aceptar" OnClick="btnAceptarAtencion_Click">
                                                </dx:ASPxButton>
                                            </td>
                                            <td>
                                                <dx:ASPxButton ID="btnCancelarAtencion" runat="server" ClientIDMode="AutoID" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                                                    CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                                                    Text="Cancelar" OnClick="btnCancelarAtencion_Click">
                                                </dx:ASPxButton>
                                            </td>
                                        </tr>
                                    </table>
                                </dx:PanelContent>
                            </PanelCollection>
                        </dx:ASPxPanel>
                    </td>
                </tr>
            </table>
            <table>
                <tr>
                    <td align="right">
                        <dx:ASPxLabel ID="ASPxLabel1" runat="server" Text="ID:">
                        </dx:ASPxLabel>
                    </td>
                    <td>
                        <dx:ASPxTextBox ID="txtIdAtencion" runat="server" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                            CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                            Width="170px" Enabled="False">
                            <ValidationSettings>
                                <ErrorFrameStyle ImageSpacing="4px">
                                    <ErrorTextPaddings PaddingLeft="4px" />
                                </ErrorFrameStyle>
                            </ValidationSettings>
                        </dx:ASPxTextBox>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td >
                        &nbsp;</td>
                    <td width="90px">
                        &nbsp;</td>
                    <td rowspan="7" width="20px" valign="top">
                        <dx:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" Width="400px" 
                            HeaderText="Informacion de Cita" View="GroupBox">
                            <PanelCollection>
                                <dx:PanelContent runat="server" SupportsDisabledAttribute="True">
                                    <dx:ASPxPanel ID="ASPxPanel2" runat="server" Width="400px">
                                        <PanelCollection>
                                            <dx:PanelContent runat="server" SupportsDisabledAttribute="True">
                                                <table class="style1">
                                                    <tr>
                                                        <td class="more-link">
                                                            <dx:ASPxLabel ID="ASPxLabel50" runat="server" Text="IdCita:">
                                                            </dx:ASPxLabel>
                                                        </td>
                                                        <td>
                                                            <dx:ASPxTextBox ID="txtidcita" runat="server" Width="170px" 
                                                                CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                                                                Enabled="False" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                                                <ValidationSettings>
                                                                    <ErrorFrameStyle ImageSpacing="4px">
                                                                        <ErrorTextPaddings PaddingLeft="4px" />
                                                                    </ErrorFrameStyle>
                                                                </ValidationSettings>
                                                            </dx:ASPxTextBox>
                                                        </td>
                                                        <td>
                                                            <dx:ASPxButton ID="btnvercita" runat="server" 
                                                                CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                                                                SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" 
                                                                Text="Ver Cita" OnClick="btnvercita_Click">
                                                                <ClientSideEvents Click="function(s, e) {
	pccitas.Show();
}" />
                                                            </dx:ASPxButton>
                                                        </td>
                                                        <td>
                                                            &nbsp;</td>
                                                    </tr>
                                                    <tr>
                                                        <td class="more-link">
                                                            <dx:ASPxLabel ID="ASPxLabel51" runat="server" Text="Fecha Cita:">
                                                            </dx:ASPxLabel>
                                                        </td>
                                                        <td>
                                                            <dx:ASPxTextBox ID="txtfeccita" runat="server" Width="170px" 
                                                                CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                                                                Enabled="False" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                                                <ValidationSettings>
                                                                    <ErrorFrameStyle ImageSpacing="4px">
                                                                        <ErrorTextPaddings PaddingLeft="4px" />
                                                                    </ErrorFrameStyle>
                                                                </ValidationSettings>
                                                            </dx:ASPxTextBox>
                                                        </td>
                                                        <td>
                                                            &nbsp;</td>
                                                        <td>
                                                            &nbsp;</td>
                                                    </tr>
                                                    <tr>
                                                        <td class="more-link">
                                                            <dx:ASPxLabel ID="ASPxLabel52" runat="server" Text="Hora de Inicio:">
                                                            </dx:ASPxLabel>
                                                        </td>
                                                        <td>
                                                            <dx:ASPxTextBox ID="txthorcita" runat="server" Width="170px" 
                                                                CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                                                                Enabled="False" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                                                <ValidationSettings>
                                                                    <ErrorFrameStyle ImageSpacing="4px">
                                                                        <ErrorTextPaddings PaddingLeft="4px" />
                                                                    </ErrorFrameStyle>
                                                                </ValidationSettings>
                                                            </dx:ASPxTextBox>
                                                        </td>
                                                        <td>
                                                            &nbsp;</td>
                                                        <td>
                                                            &nbsp;</td>
                                                    </tr>
                                                    <tr>
                                                        <td class="more-link">
                                                            <dx:ASPxLabel ID="ASPxLabel53" runat="server" Text="Estado:">
                                                            </dx:ASPxLabel>
                                                        </td>
                                                        <td>
                                                            <dx:ASPxTextBox ID="txtestado" runat="server" Width="170px" 
                                                                CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                                                                Enabled="False" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                                                <ValidationSettings>
                                                                    <ErrorFrameStyle ImageSpacing="4px">
                                                                        <ErrorTextPaddings PaddingLeft="4px" />
                                                                    </ErrorFrameStyle>
                                                                </ValidationSettings>
                                                            </dx:ASPxTextBox>
                                                        </td>
                                                        <td>
                                                            &nbsp;</td>
                                                        <td>
                                                            &nbsp;</td>
                                                    </tr>
                                                    <tr>
                                                        <td class="more-link">
                                                            <dx:ASPxLabel ID="ASPxLabel54" runat="server" Text="Observacion:">
                                                            </dx:ASPxLabel>
                                                        </td>
                                                        <td>
                                                            <dx:ASPxTextBox ID="txtobs" runat="server" Width="170px" 
                                                                CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                                                                Enabled="False" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                                                <ValidationSettings>
                                                                    <ErrorFrameStyle ImageSpacing="4px">
                                                                        <ErrorTextPaddings PaddingLeft="4px" />
                                                                    </ErrorFrameStyle>
                                                                </ValidationSettings>
                                                            </dx:ASPxTextBox>
                                                        </td>
                                                        <td>
                                                            &nbsp;</td>
                                                        <td>
                                                            &nbsp;</td>
                                                    </tr>
                                                </table>
                                            </dx:PanelContent>
                                        </PanelCollection>
                                    </dx:ASPxPanel>
                                </dx:PanelContent>
                            </PanelCollection>
                        </dx:ASPxRoundPanel>

                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <dx:ASPxLabel ID="ASPxLabel2" runat="server" Text="Fecha Ingreso:">
                        </dx:ASPxLabel>
                    </td>
                    <td>
                        <dx:ASPxDateEdit ID="dEFechaIngresoAtencion" runat="server" ClientIDMode="AutoID"
                            CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue"
                            SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                            <ValidationSettings>
                                <ErrorFrameStyle ImageSpacing="4px">
                                    <ErrorTextPaddings PaddingLeft="4px" />
                                </ErrorFrameStyle>
                            </ValidationSettings>
                        </dx:ASPxDateEdit>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td align="right">
                        <dx:ASPxLabel ID="ASPxLabel3" runat="server" Text="Fecha Egreso:">
                        </dx:ASPxLabel>
                    </td>
                    <td>
                        <dx:ASPxDateEdit ID="dEFechaEgresoAtencion" runat="server" ClientIDMode="AutoID"
                            CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue"
                            SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                            <ValidationSettings>
                                <ErrorFrameStyle ImageSpacing="4px">
                                    <ErrorTextPaddings PaddingLeft="4px" />
                                </ErrorFrameStyle>
                            </ValidationSettings>
                        </dx:ASPxDateEdit>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td align="right">
                        <dx:ASPxLabel ID="ASPxLabel4" runat="server" Text="Fecha Egreso Adminsitrativo:">
                        </dx:ASPxLabel>
                    </td>
                    <td>
                        <dx:ASPxDateEdit ID="dEFechaEgresoAdministrativoAtencion" runat="server" ClientIDMode="AutoID"
                            CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue"
                            SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                            <ValidationSettings>
                                <ErrorFrameStyle ImageSpacing="4px">
                                    <ErrorTextPaddings PaddingLeft="4px" />
                                </ErrorFrameStyle>
                            </ValidationSettings>
                        </dx:ASPxDateEdit>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td align="right">
                        <dx:ASPxLabel ID="ASPxLabel5" runat="server" Text="Descripción:">
                        </dx:ASPxLabel>
                    </td>
                    <td>
                        <dx:ASPxTextBox ID="txtDescripcionAtencion" runat="server" ClientIDMode="AutoID"
                            CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue"
                            SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" Width="170px">
                            <ValidationSettings>
                                <ErrorFrameStyle ImageSpacing="4px">
                                    <ErrorTextPaddings PaddingLeft="4px" />
                                </ErrorFrameStyle>
                            </ValidationSettings>
                        </dx:ASPxTextBox>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td align="right">
                        <dx:ASPxLabel ID="ASPxLabeSeleccione" runat="server" Text="Seleccione:">
                        </dx:ASPxLabel>
                    </td>
                    <td colspan="2">
                        <dx:ASPxRadioButton ID="radiobInfeccionesIntrahosp" runat="server" GroupName="gnMotivoMuerte"
                            Text="Infecciones Intrahospitalarias" Checked="True">
                        </dx:ASPxRadioButton>
                        <dx:ASPxRadioButton ID="radiobNecropcia" runat="server" GroupName="gnMotivoMuerte"
                            Text="Necropsia">
                        </dx:ASPxRadioButton>
                    </td>
                    <td>
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td align="right">
                        <dx:ASPxLabel ID="ASPxLabel47" runat="server" Text="Paciente:">
                        </dx:ASPxLabel>
                    </td>
                    <td>
                        <dx:ASPxTextBox ID="txtCodPaciente" runat="server" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                            CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                            Width="170px" ReadOnly="True">
                            <ValidationSettings>
                                <ErrorFrameStyle ImageSpacing="4px">
                                    <ErrorTextPaddings PaddingLeft="4px" />
                                </ErrorFrameStyle>
                            </ValidationSettings>
                        </dx:ASPxTextBox>
                    </td>
                    <td>
                        <dx:ASPxButton ID="btnBuscarPaciente" runat="server" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                            CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                            Text="Buscar" onclick="btnBuscarPaciente_Click">
                            <ClientSideEvents Click="function(s, e) {pcDetallePaciente.Show();}" />
                        </dx:ASPxButton>
                    </td>
                    <td>
                        <dx:ASPxButton ID="btnhistorial" runat="server" 
                            CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                            onclick="btnhistorial_Click" 
                            SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" 
                            Text="Ver Historial" Width="110px">
                        </dx:ASPxButton>
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td align="right">
                        <dx:ASPxLabel ID="lblNombrePaciente" runat="server" Text="Nombre Paciente:">
                        </dx:ASPxLabel>
                    </td>
                    <td>
                        <dx:ASPxTextBox ID="txtNombrePaciente" runat="server" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                            CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                            Width="202px" ReadOnly="True">
                            <ValidationSettings>
                                <ErrorFrameStyle ImageSpacing="4px">
                                    <ErrorTextPaddings PaddingLeft="4px" />
                                </ErrorFrameStyle>
                            </ValidationSettings>
                        </dx:ASPxTextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <dx:ASPxLabel ID="ASPxLabel6" runat="server" Text="Tipo de Servicio:">
                        </dx:ASPxLabel>
                    </td>
                    <td>
                        <dx:ASPxComboBox ID="cboTipoDeServicio" runat="server" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                            CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                            TextField="TIS_DESCRIPCION" ValueField="TIS_ID_TIPO" AutoPostBack="True" OnSelectedIndexChanged="cboTipoDeServicio_SelectedIndexChanged">
                            <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Editors/Loading.gif">
                            </LoadingPanelImage>
                            <ValidationSettings>
                                <ErrorFrameStyle ImageSpacing="4px">
                                    <ErrorTextPaddings PaddingLeft="4px" />
                                </ErrorFrameStyle>
                            </ValidationSettings>
                        </dx:ASPxComboBox>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td align="right">
                        <dx:ASPxLabel ID="ASPxLabel46" runat="server" Text="Especialidad:">
                        </dx:ASPxLabel>
                    </td>
                    <td>
                        <dx:ASPxComboBox ID="cboEspecialidad" runat="server" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                            CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                            TextField="ESP_NOMBRE" ValueField="ESP_ID_ESPECIALIDAD" AutoPostBack="True" OnSelectedIndexChanged="cboEspecialidad_SelectedIndexChanged">
                            <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Editors/Loading.gif">
                            </LoadingPanelImage>
                            <ValidationSettings>
                                <ErrorFrameStyle ImageSpacing="4px">
                                    <ErrorTextPaddings PaddingLeft="4px" />
                                </ErrorFrameStyle>
                            </ValidationSettings>
                        </dx:ASPxComboBox>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td align="right">
                        <dx:ASPxLabel ID="ASPxLabel44" runat="server" Text="Servicio:">
                        </dx:ASPxLabel>
                    </td>
                    <td>
                        <dx:ASPxComboBox ID="cboServicio" runat="server" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                            CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                            <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Editors/Loading.gif">
                            </LoadingPanelImage>
                            <ValidationSettings>
                                <ErrorFrameStyle ImageSpacing="4px">
                                    <ErrorTextPaddings PaddingLeft="4px" />
                                </ErrorFrameStyle>
                            </ValidationSettings>
                        </dx:ASPxComboBox>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td align="right">
                        <dx:ASPxLabel ID="ASPxLabel45" runat="server" Text="Médico:">
                        </dx:ASPxLabel>
                    </td>
                    <td>
                        <dx:ASPxComboBox ID="cboMedico" runat="server" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                            CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                            <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Editors/Loading.gif">
                            </LoadingPanelImage>
                            <ValidationSettings>
                                <ErrorFrameStyle ImageSpacing="4px">
                                    <ErrorTextPaddings PaddingLeft="4px" />
                                </ErrorFrameStyle>
                            </ValidationSettings>
                        </dx:ASPxComboBox>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                </tr>
            </table>
            <table width="99%">
                <tr>
                    <td>
                        <dx:ASPxLabel ID="ASPxLabel37" runat="server" Text="Receta">
                        </dx:ASPxLabel>
                    </td>
                </tr>
                <tr>
                    <td>
                        <dx:ASPxPageControl ID="ASPxPageControl3" runat="server" ActiveTabIndex="0" ClientIDMode="AutoID"
                            CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue"
                            Width="50%">
                            <TabPages>
                                <dx:TabPage Text="Datos">
                                    <ContentCollection>
                                        <dx:ContentControl runat="server" SupportsDisabledAttribute="True">
                                            <table>
                                                <tr>
                                                    <td colspan="2">
                                                        <dx:ASPxButton ID="btnAgregarReceta" runat="server" ClientIDMode="AutoID" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                                                            CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                                                            Text="Agregar Receta" AutoPostBack="False" 
                                                            OnClick="btnAgregarReceta_Click" Width="120px">
                                                        </dx:ASPxButton>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="right">
                                                        <dx:ASPxLabel ID="ASPxLabel38" runat="server" Text="Fecha:">
                                                        </dx:ASPxLabel>
                                                    </td>
                                                    <td>
                                                        <dx:ASPxDateEdit ID="dEFechaRecetaAtencion" runat="server" ClientIDMode="AutoID"
                                                            CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue"
                                                            SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                                            <ValidationSettings>
                                                                <ErrorFrameStyle ImageSpacing="4px">
                                                                    <ErrorTextPaddings PaddingLeft="4px" />
                                                                </ErrorFrameStyle>
                                                            </ValidationSettings>
                                                        </dx:ASPxDateEdit>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="right">
                                                        <dx:ASPxLabel ID="ASPxLabel39" runat="server" Text="Nro. Receta:">
                                                        </dx:ASPxLabel>
                                                    </td>
                                                    <td>
                                                        <dx:ASPxTextBox ID="txtNroRecetaAtencion" runat="server" ClientIDMode="AutoID" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                                                            CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                                                            Width="170px">
                                                            <ValidationSettings>
                                                                <ErrorFrameStyle ImageSpacing="4px">
                                                                    <ErrorTextPaddings PaddingLeft="4px" />
                                                                </ErrorFrameStyle>
                                                            </ValidationSettings>
                                                        </dx:ASPxTextBox>
                                                    </td>
                                                    <td>
                                                        <asp:ScriptManager ID="ScriptManager1" runat="server">
                                                        </asp:ScriptManager>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="right">
                                                        <dx:ASPxLabel ID="ASPxLabel48" runat="server" Text="Nro Producto:">
                                                        </dx:ASPxLabel>
                                                    </td>
                                                    <td>
                                                        <dx:ASPxTextBox ID="txtnroprod" runat="server" Width="170px">
                                                        </dx:ASPxTextBox>
                                                    </td>
                                                    <td>
                                                        <dx:ASPxButton ID="btnbusprod" runat="server" 
                                                            CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                                                            SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" Text="Buscar" 
                                                            OnClick="btnbusprod_Click">
                                                            <ClientSideEvents Click="function(s, e) {
	pcproducto.Show();
}" />
                                                        </dx:ASPxButton>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="right">
                                                        <dx:ASPxLabel ID="ASPxLabel49" runat="server" Text="Nombre Producto:">
                                                        </dx:ASPxLabel>
                                                    </td>
                                                    <td>
                                                        <dx:ASPxTextBox ID="txtdescripprod" runat="server" Width="170px">
                                                        </dx:ASPxTextBox>
                                                    </td>
                                                    <td>
                                                        &nbsp;</td>
                                                </tr>
                                                <tr>
                                                    <td align="right">
                                                        &nbsp;</td>
                                                    <td>
                                                        &nbsp;</td>
                                                    <td>
                                                        &nbsp;</td>
                                                </tr>
                                                <tr>
                                                    <td align="center" colspan="3">
                                                        <dx:ASPxButton ID="btnagrprod" runat="server" 
                                                            CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                                                            OnClick="btnagrprod_Click" 
                                                            SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" 
                                                            Text="Agregar Producto">
                                                        </dx:ASPxButton>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="right">
                                                        &nbsp;</td>
                                                    <td>
                                                        &nbsp;</td>
                                                    <td>
                                                        &nbsp;</td>
                                                </tr>
                                                <tr>
                                                    <td align="center" colspan="3">
                                                        <dx:ASPxGridView ID="gvprod" runat="server" AutoGenerateColumns="False" 
                                                            CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" 
                                                            CssPostfix="PlasticBlue">
                                                            <Columns>
                                                                <dx:GridViewDataTextColumn Caption="Codigo" FieldName="PRO_ID_PRODUCTO" 
                                                                    ShowInCustomizationForm="True" VisibleIndex="0">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn Caption="Descripcion Producto" 
                                                                    FieldName="PRO_DES_PRODUCTO" ShowInCustomizationForm="True" VisibleIndex="1">
                                                                </dx:GridViewDataTextColumn>
                                                            </Columns>
                                                            <SettingsPager ShowDefaultImages="False">
                                                                <AllButton Text="All">
                                                                </AllButton>
                                                                <NextPageButton Text="Next &gt;">
                                                                </NextPageButton>
                                                                <PrevPageButton Text="&lt; Prev">
                                                                </PrevPageButton>
                                                            </SettingsPager>
                                                            <Images SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                                                <LoadingPanelOnStatusBar Url="~/App_Themes/PlasticBlue/GridView/gvLoadingOnStatusBar.gif">
                                                                </LoadingPanelOnStatusBar>
                                                                <LoadingPanel Url="~/App_Themes/PlasticBlue/GridView/Loading.gif">
                                                                </LoadingPanel>
                                                            </Images>
                                                            <ImagesFilterControl>
                                                                <LoadingPanel Url="~/App_Themes/PlasticBlue/Editors/Loading.gif">
                                                                </LoadingPanel>
                                                            </ImagesFilterControl>
                                                            <Styles CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" 
                                                                CssPostfix="PlasticBlue">
                                                                <Header ImageSpacing="10px" SortingImageSpacing="10px">
                                                                </Header>
                                                            </Styles>
                                                            <StylesEditors>
                                                                <CalendarHeader Spacing="11px">
                                                                </CalendarHeader>
                                                                <ProgressBar Height="25px">
                                                                </ProgressBar>
                                                            </StylesEditors>
                                                        </dx:ASPxGridView>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="right">
                                                        &nbsp;</td>
                                                    <td>
                                                        &nbsp;</td>
                                                    <td>
                                                        &nbsp;</td>
                                                </tr>
                                            </table>
                                        </dx:ContentControl>
                                    </ContentCollection>
                                </dx:TabPage>
                                <dx:TabPage Text="Listado">
                                    <ContentCollection>
                                        <dx:ContentControl runat="server" SupportsDisabledAttribute="True">
                                            <table>
                                                <tr>
                                                    <td>
                                                        <dx:ASPxGridView ID="gvListaRecetas" runat="server" ClientIDMode="AutoID" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                                                            CssPostfix="PlasticBlue" AutoGenerateColumns="False">
                                                            <Columns>
                                                                <dx:GridViewDataTextColumn Caption="Fecha" FieldName="ATR_FECHA" ShowInCustomizationForm="True"
                                                                    VisibleIndex="1">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn Caption="Nro Receta" FieldName="ATR_NRO_RECETA" ShowInCustomizationForm="True"
                                                                    VisibleIndex="0">
                                                                </dx:GridViewDataTextColumn>
                                                            </Columns>
                                                            <SettingsPager ShowDefaultImages="False">
                                                                <AllButton Text="All">
                                                                </AllButton>
                                                                <NextPageButton Text="Next &gt;">
                                                                </NextPageButton>
                                                                <PrevPageButton Text="&lt; Prev">
                                                                </PrevPageButton>
                                                            </SettingsPager>
                                                            <Images SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                                                <LoadingPanelOnStatusBar Url="~/App_Themes/PlasticBlue/GridView/gvLoadingOnStatusBar.gif">
                                                                </LoadingPanelOnStatusBar>
                                                                <LoadingPanel Url="~/App_Themes/PlasticBlue/GridView/Loading.gif">
                                                                </LoadingPanel>
                                                            </Images>
                                                            <ImagesFilterControl>
                                                                <LoadingPanel Url="~/App_Themes/PlasticBlue/Editors/Loading.gif">
                                                                </LoadingPanel>
                                                            </ImagesFilterControl>
                                                            <Styles CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue">
                                                                <Header ImageSpacing="10px" SortingImageSpacing="10px">
                                                                </Header>
                                                            </Styles>
                                                            <StylesEditors>
                                                                <CalendarHeader Spacing="11px">
                                                                </CalendarHeader>
                                                                <ProgressBar Height="25px">
                                                                </ProgressBar>
                                                            </StylesEditors>
                                                        </dx:ASPxGridView>
                                                        <br />
                                                        <dx:ASPxGridView ID="gvdetalleprod" runat="server" AutoGenerateColumns="False" 
                                                            CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue">
                                                            <Columns>
                                                                <dx:GridViewDataTextColumn Caption="Nro Receta" FieldName="ATR_NRO_RECETA" 
                                                                    ShowInCustomizationForm="True" VisibleIndex="0">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn Caption="Nro Producto" FieldName="PRO_ID_PRODUCTO" 
                                                                    ShowInCustomizationForm="True" VisibleIndex="1">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn Caption="Nombre Producto" FieldName="PRO_DES_PRODUCTO" 
                                                                    ShowInCustomizationForm="True" VisibleIndex="2">
                                                                </dx:GridViewDataTextColumn>
                                                            </Columns>
                                                            <SettingsPager ShowDefaultImages="False">
                                                                <AllButton Text="All">
                                                                </AllButton>
                                                                <NextPageButton Text="Next &gt;">
                                                                </NextPageButton>
                                                                <PrevPageButton Text="&lt; Prev">
                                                                </PrevPageButton>
                                                            </SettingsPager>
                                                            <Images SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                                                <LoadingPanelOnStatusBar Url="~/App_Themes/PlasticBlue/GridView/gvLoadingOnStatusBar.gif">
                                                                </LoadingPanelOnStatusBar>
                                                                <LoadingPanel Url="~/App_Themes/PlasticBlue/GridView/Loading.gif">
                                                                </LoadingPanel>
                                                            </Images>
                                                            <ImagesFilterControl>
                                                                <LoadingPanel Url="~/App_Themes/PlasticBlue/Editors/Loading.gif">
                                                                </LoadingPanel>
                                                            </ImagesFilterControl>
                                                            <Styles CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" 
                                                                CssPostfix="PlasticBlue">
                                                                <Header ImageSpacing="10px" SortingImageSpacing="10px">
                                                                </Header>
                                                            </Styles>
                                                            <StylesEditors>
                                                                <CalendarHeader Spacing="11px">
                                                                </CalendarHeader>
                                                                <ProgressBar Height="25px">
                                                                </ProgressBar>
                                                            </StylesEditors>
                                                        </dx:ASPxGridView>
                                                    </td>
                                                </tr>
                                            </table>
                                        </dx:ContentControl>
                                    </ContentCollection>
                                </dx:TabPage>
                            </TabPages>
                            <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/tcLoading.gif">
                            </LoadingPanelImage>
                            <Paddings PaddingLeft="5px" PaddingRight="5px" PaddingTop="3px" />
                            <ContentStyle>
                                <Border BorderWidth="0px" />
                            </ContentStyle>
                        </dx:ASPxPageControl>
                    </td>
                </tr>
            </table>
            <dx:ASPxPopupControl ID="pcMensaje" runat="server" Width="350px" AllowDragging="True"
                AllowResize="True" ClientInstanceName="pcMensaje" 
                CloseAction="CloseButton" CssPostfix="PlasticBlue"
                HeaderText="Mensaje" Modal="True" PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter"
                DragElement="Window" ShowPageScrollbarWhenModal="True">
                <HeaderImage Url="~/Imagenes/iconError.png" Width="20px">
                </HeaderImage>
                <HeaderStyle Font-Bold="True" />
                <ContentCollection>
                    <dx:PopupControlContentControl ID="PopupControlContentControl1" runat="server" SupportsDisabledAttribute="True">
                        <table style="width: 100%;">
                            <tr>
                                <td class="Filas" align="center">
                                    <dx:ASPxLabel ID="lblMensaje" runat="server">
                                    </dx:ASPxLabel>
                                </td>
                            </tr>
                            <tr>
                                <td class="Filas" align="center">
                                    <dx:ASPxButton ID="btnPopAceptar" runat="server" Text="Aceptar" CssPostfix="PlasticBlue"
                                        AllowDragging="True" DragElement="Window" Font-Bold="True" AutoPostBack="False">
                                        <ClientSideEvents Click="function(s, e) {
	pcMensaje.Hide();
}" />
                                    </dx:ASPxButton>
                                </td>
                            </tr>
                        </table>
                    </dx:PopupControlContentControl>
                </ContentCollection>
            </dx:ASPxPopupControl>
            <dx:ASPxPopupControl ID="pcDetallePaciente" runat="server" AllowDragging="True" ClientInstanceName="pcDetallePaciente"
                CloseAction="CloseButton" HeaderText="Buscar Paciente" Modal="True" PopupHorizontalAlign="WindowCenter"
                PopupVerticalAlign="WindowCenter" Width="800px" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                CssPostfix="PlasticBlue" LoadingPanelText="Cargando&amp;hellip;" 
                SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" 
                ShowPageScrollbarWhenModal="True">
                <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                </LoadingPanelImage>
                <CloseButtonStyle>
                    <Paddings Padding="0px" />
                </CloseButtonStyle>
                <ContentStyle>
                    <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                </ContentStyle>
                <HeaderStyle>
                    <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" PaddingTop="4px" />
                </HeaderStyle>
                <ContentCollection>
                    <dx:PopupControlContentControl runat="server" SupportsDisabledAttribute="True">
                        <table>
                            <tr>
                                <td>
                                    <dx:ASPxGridView ID="gvBuscarPaciente" runat="server" AutoGenerateColumns="False"
                                        Width="1009px" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue"
                                        KeyFieldName="PAC_ID_PACIENTE" OnAfterPerformCallback="gvBuscarPaciente_AfterPerformCallback"
                                        OnPageIndexChanged="gvBuscarPaciente_PageIndexChanged">
                                        <Columns>
                                            <dx:GridViewDataTextColumn Caption="ID" FieldName="PAC_ID_PACIENTE" ShowInCustomizationForm="True"
                                                VisibleIndex="0">
                                                <PropertiesTextEdit>
                                                    <ValidationSettings ErrorText="Valor inv&#225;lido">
                                                        <RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular">
                                                        </RegularExpression>
                                                    </ValidationSettings>
                                                </PropertiesTextEdit>
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn Caption="Codigo Paciente" FieldName="PAC_CODIGO_PACIENTE"
                                                ShowInCustomizationForm="True" VisibleIndex="1">
                                                <PropertiesTextEdit>
                                                    <ValidationSettings ErrorText="Valor inv&#225;lido">
                                                        <RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular">
                                                        </RegularExpression>
                                                    </ValidationSettings>
                                                </PropertiesTextEdit>
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn Caption="Apellido Paterno" FieldName="PAC_APELLIDO_PATERNO"
                                                ShowInCustomizationForm="True" VisibleIndex="2">
                                                <PropertiesTextEdit>
                                                    <ValidationSettings ErrorText="Valor inv&#225;lido">
                                                        <RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular">
                                                        </RegularExpression>
                                                    </ValidationSettings>
                                                </PropertiesTextEdit>
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn Caption="Nombres" FieldName="PAC_NOMBRES" ShowInCustomizationForm="True"
                                                VisibleIndex="4">
                                                <PropertiesTextEdit>
                                                    <ValidationSettings ErrorText="Valor inv&#225;lido">
                                                        <RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular">
                                                        </RegularExpression>
                                                    </ValidationSettings>
                                                </PropertiesTextEdit>
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn Caption="DNI" FieldName="PAC_NRO_DOCUMENTO" ShowInCustomizationForm="True"
                                                VisibleIndex="6">
                                                <PropertiesTextEdit>
                                                    <ValidationSettings ErrorText="Valor inv&#225;lido">
                                                        <RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular">
                                                        </RegularExpression>
                                                    </ValidationSettings>
                                                </PropertiesTextEdit>
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn Caption="Apellido Materno" FieldName="PAC_APELLIDO_MATERNO"
                                                ShowInCustomizationForm="True" VisibleIndex="3">
                                                <PropertiesTextEdit>
                                                    <ValidationSettings ErrorText="Valor inv&#225;lido">
                                                        <RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular">
                                                        </RegularExpression>
                                                    </ValidationSettings>
                                                </PropertiesTextEdit>
                                            </dx:GridViewDataTextColumn>
                                        </Columns>
                                        <SettingsBehavior AllowFocusedRow="True" AllowSelectByRowClick="True" AutoFilterRowInputDelay="1000"
                                            ColumnResizeMode="Control" />
                                        <SettingsBehavior AllowFocusedRow="True" AllowSelectByRowClick="True" ColumnResizeMode="Control"
                                            AutoFilterRowInputDelay="1000"></SettingsBehavior>
                                        <SettingsPager NumericButtonCount="7" PageSize="7">
                                            <AllButton Text="Todos">
                                            </AllButton>
                                            <NextPageButton Text="Siguiente &gt;">
                                            </NextPageButton>
                                            <PrevPageButton Text="&lt; Previo">
                                            </PrevPageButton>
                                        </SettingsPager>
                                        <Settings ShowFilterBar="Auto" ShowFilterRow="True" ShowGroupPanel="True" />
                                        <Settings ShowFilterRow="True" ShowGroupPanel="True" ShowFilterBar="Auto"></Settings>
                                        <SettingsLoadingPanel Text="Cargando&amp;hellip;"></SettingsLoadingPanel>
                                        <Styles CssPostfix="PlasticBlue" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css">
                                        </Styles>
                                    </dx:ASPxGridView>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <div style="float: left; padding: 10px">
                                        <dx:ASPxButton ID="btnAceptarBuscarPaciente" runat="server" Text="Aceptar" Width="100px"
                                            OnClick="btnAceptarBuscarPaciente_Click">
                                            <ClientSideEvents CheckedChanged="function(s, e) {

}" Click="function(s, e) {
		pcDetallePaciente.Hide();
}" />
                                        </dx:ASPxButton>
                                    </div>
                                    <div style="float: left; padding: 10px">
                                        <dx:ASPxButton ID="btnCancelarBuscarPaciente" runat="server" Text="Cancelar" Width="100px"
                                            AutoPostBack="False">
                                            <ClientSideEvents Click="function(s, e) {
	pcDetallePaciente.Hide();
}" />
                                        </dx:ASPxButton>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </dx:PopupControlContentControl>
                </ContentCollection>
            </dx:ASPxPopupControl>
            <br />
            <dx:ASPxPopupControl ID="pcproducto" runat="server" 
                CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                HeaderText="Buscar Producto" 
                SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" 
                AllowDragging="True" ClientInstanceName="pcproducto" CloseAction="CloseButton" 
                Modal="True" PopupHorizontalAlign="WindowCenter" 
                PopupVerticalAlign="WindowCenter" ShowPageScrollbarWhenModal="True">
                <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                </LoadingPanelImage>
                <CloseButtonStyle>
                    <Paddings Padding="0px" />
                </CloseButtonStyle>
                <ContentStyle>
                    <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                </ContentStyle>
                <HeaderStyle>
                <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" 
                    PaddingTop="4px" />
                </HeaderStyle>
                <ContentCollection>
                    <dx:PopupControlContentControl runat="server" SupportsDisabledAttribute="True">
                        <table class="style1">
                            <tr>
                                <td colspan="2">
                                    <dx:ASPxGridView ID="gvproductos" runat="server" AutoGenerateColumns="False" 
                                        CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                                        KeyFieldName="PRO_ID_PRODUCTO" 
                                        OnAfterPerformCallback="gvproductos_AfterPerformCallback" 
                                        OnPageIndexChanged="gvproductos_PageIndexChanged">
                                        <Columns>
                                            <dx:GridViewDataTextColumn Caption="Codigo" FieldName="PRO_ID_PRODUCTO" 
                                                ShowInCustomizationForm="True" VisibleIndex="0">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn Caption="Descripcion de Productos" 
                                                FieldName="PRO_DES_PRODUCTO" ShowInCustomizationForm="True" VisibleIndex="1">
                                            </dx:GridViewDataTextColumn>
                                        </Columns>
                                        <SettingsBehavior AllowFocusedRow="True" AllowSelectByRowClick="True" />
                                        <SettingsPager ShowDefaultImages="False" NumericButtonCount="7" PageSize="7">
                                            <AllButton Text="All">
                                            </AllButton>
                                            <NextPageButton Text="Next &gt;">
                                            </NextPageButton>
                                            <PrevPageButton Text="&lt; Prev">
                                            </PrevPageButton>
                                        </SettingsPager>
                                        <Settings ShowFilterRow="True" ShowGroupPanel="True" />
                                        <Images SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                            <LoadingPanelOnStatusBar Url="~/App_Themes/PlasticBlue/GridView/gvLoadingOnStatusBar.gif">
                                            </LoadingPanelOnStatusBar>
                                            <LoadingPanel Url="~/App_Themes/PlasticBlue/GridView/Loading.gif">
                                            </LoadingPanel>
                                        </Images>
                                        <ImagesFilterControl>
                                            <LoadingPanel Url="~/App_Themes/PlasticBlue/Editors/Loading.gif">
                                            </LoadingPanel>
                                        </ImagesFilterControl>
                                        <Styles CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" 
                                            CssPostfix="PlasticBlue">
                                            <Header ImageSpacing="10px" SortingImageSpacing="10px">
                                            </Header>
                                        </Styles>
                                        <StylesEditors>
                                            <CalendarHeader Spacing="11px">
                                            </CalendarHeader>
                                            <ProgressBar Height="25px">
                                            </ProgressBar>
                                        </StylesEditors>
                                    </dx:ASPxGridView>
                                </td>
                            </tr>
                            <tr>
                                <td><div style="float: left; padding: 10px">
                                    <dx:ASPxButton ID="btnaceptarprod" runat="server" Text="Aceptar" 
                                        CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                                        OnClick="btnaceptarprod_Click" 
                                        SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                        <ClientSideEvents Click="function(s, e) {
	pcproducto.Hide();
}" />
                                    </dx:ASPxButton></div>
                                    <div style="float: left; padding: 10px">
                                    <dx:ASPxButton ID="btncancelprod" runat="server" Text="Cancelar" 
                                            AutoPostBack="False" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" 
                                            CssPostfix="PlasticBlue" 
                                            SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                        <ClientSideEvents Click="function(s, e) {
	pcproducto.Hide();
}" />
                                    </dx:ASPxButton></div>
                                </td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                        </table>
                    </dx:PopupControlContentControl>
                </ContentCollection>
            </dx:ASPxPopupControl>
            <br />
            <dx:ASPxPopupControl ID="pcDetalleAtencion" runat="server" 
                AllowDragging="False" AllowResize="False" 
                ClientInstanceName="pcDetalleAtencion" CloseAction="CloseButton" 
                DragElement="Window" HeaderText="Historial" Height="600px" 
                Modal="True" PopupHorizontalAlign="WindowCenter" 
                PopupVerticalAlign="WindowCenter" ScrollBars="Vertical" 
                ShowPageScrollbarWhenModal="True" Width="950px">
                <HeaderStyle BackColor="#3D5294" Font-Bold="True" ForeColor="White" />
                <ContentCollection>
                    <dx:PopupControlContentControl runat="server">
                        <table class="style1">
                            <tr>
                                <td class="izq">
                                    Seleccione Atencion :</td>
                                <td class="der" align="center">
                                    <dx:ASPxGridView ID="gvatenciones" runat="server" AutoGenerateColumns="False" 
                                        CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" 
                                        CssPostfix="PlasticBlue" KeyFieldName="ATE_ID_ATENCION" 
                                        OnPageIndexChanged="gvatenciones_PageIndexChanged">
                                        <Columns>
                                            <dx:GridViewDataTextColumn Caption="Atencion" FieldName="ATE_ID_ATENCION" 
                                                ShowInCustomizationForm="True" VisibleIndex="0">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataDateColumn Caption="Fecha Ingreso" 
                                                FieldName="ATE_FECHA_INGRESO" ShowInCustomizationForm="True" VisibleIndex="1">
                                            </dx:GridViewDataDateColumn>
                                            <dx:GridViewDataDateColumn Caption="Fecha Egreso" FieldName="ATE_FECHA_EGRESO" 
                                                ShowInCustomizationForm="True" VisibleIndex="2">
                                            </dx:GridViewDataDateColumn>
                                        </Columns>
                                        <SettingsBehavior AllowFocusedRow="True" />
                                        <SettingsPager ShowDefaultImages="False">
                                            <AllButton Text="All">
                                            </AllButton>
                                            <NextPageButton Text="Next &gt;">
                                            </NextPageButton>
                                            <PrevPageButton Text="&lt; Prev">
                                            </PrevPageButton>
                                        </SettingsPager>
                                        <Images SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                            <LoadingPanelOnStatusBar Url="~/App_Themes/PlasticBlue/GridView/gvLoadingOnStatusBar.gif">
                                            </LoadingPanelOnStatusBar>
                                            <LoadingPanel Url="~/App_Themes/PlasticBlue/GridView/Loading.gif">
                                            </LoadingPanel>
                                        </Images>
                                        <ImagesFilterControl>
                                            <LoadingPanel Url="~/App_Themes/PlasticBlue/Editors/Loading.gif">
                                            </LoadingPanel>
                                        </ImagesFilterControl>
                                        <Styles CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" 
                                            CssPostfix="PlasticBlue">
                                            <Header ImageSpacing="10px" SortingImageSpacing="10px">
                                            </Header>
                                        </Styles>
                                        <StylesEditors>
                                            <CalendarHeader Spacing="11px">
                                            </CalendarHeader>
                                            <ProgressBar Height="25px">
                                            </ProgressBar>
                                        </StylesEditors>
                                    </dx:ASPxGridView>
                                </td>
                            </tr>
                            <tr>
                                <td class="izq">
                                    &nbsp;</td>
                                <td align="center" class="der">
                                    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                                      <Triggers>
            <asp:PostBackTrigger ControlID="btnverhist" />
        </Triggers>
                                        <ContentTemplate>
                                            <dx:ASPxButton ID="btnverhist" runat="server" 
                                                CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                                                OnClick="btnverhist_Click" 
                                                SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" 
                                                Text="Ver Detalle">
                                            </dx:ASPxButton>
                                        </ContentTemplate>
                                    </asp:UpdatePanel>
                                </td>
                            </tr>
                            <tr>
                                <td class="izq">
                                    &nbsp;</td>
                                <td align="center" class="der">
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td class="izq">
                                    <dx:ASPxLabel ID="lblDiag" runat="server" Text="Diagnosticos">
                                    </dx:ASPxLabel>
                                </td>
                                <td class="der">
                                    <dx:ASPxGridView ID="dgvDiagnosticos" runat="server" 
                                        AutoGenerateColumns="False" 
                                        CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                                        KeyFieldName="ATD_ID_DIAGNOSTICO" 
                                        OnAfterPerformCallback="dgvDiagnosticos_AfterPerformCallback" 
                                        OnPageIndexChanged="dgvDiagnosticos_PageIndexChanged" Width="100%">
                                        <ClientSideEvents RowDblClick="function(s, e){ DetallePopUp(1); } " />
                                        <Columns>
                                            <dx:GridViewDataTextColumn FieldName="ATD_ID_DIAGNOSTICO" 
                                                ShowInCustomizationForm="True" Visible="False" VisibleIndex="0">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn Caption="Codigo" FieldName="DIA_CODIGO_CIE10" 
                                                ShowInCustomizationForm="True" VisibleIndex="1">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn Caption="Descripcion" FieldName="DIA_DESCRIPCION" 
                                                ShowInCustomizationForm="True" VisibleIndex="2">
                                            </dx:GridViewDataTextColumn>
                                        </Columns>
                                        <SettingsBehavior AllowFocusedRow="True" />
                                        <SettingsPager PageSize="5" ShowDefaultImages="False">
                                            <AllButton Text="All">
                                            </AllButton>
                                            <NextPageButton Text="Next &gt;">
                                            </NextPageButton>
                                            <PrevPageButton Text="&lt; Prev">
                                            </PrevPageButton>
                                        </SettingsPager>
                                        <Images SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                            <LoadingPanelOnStatusBar Url="~/App_Themes/PlasticBlue/GridView/gvLoadingOnStatusBar.gif">
                                            </LoadingPanelOnStatusBar>
                                            <LoadingPanel Url="~/App_Themes/PlasticBlue/GridView/Loading.gif">
                                            </LoadingPanel>
                                        </Images>
                                        <ImagesFilterControl>
                                            <LoadingPanel Url="~/App_Themes/PlasticBlue/Editors/Loading.gif">
                                            </LoadingPanel>
                                        </ImagesFilterControl>
                                        <Styles CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" 
                                            CssPostfix="PlasticBlue">
                                            <Header ImageSpacing="10px" SortingImageSpacing="10px">
                                            </Header>
                                        </Styles>
                                        <StylesEditors>
                                            <CalendarHeader Spacing="11px">
                                            </CalendarHeader>
                                            <ProgressBar Height="50px">
                                            </ProgressBar>
                                        </StylesEditors>
                                    </dx:ASPxGridView>
                                </td>
                            </tr>
                            <tr>
                                <td class="izq">
                                    <dx:ASPxLabel ID="lblExams" runat="server" Text="Examenes">
                                    </dx:ASPxLabel>
                                </td>
                                <td class="der">
                                    <dx:ASPxGridView ID="dgvExamenes" runat="server" 
                                        CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                                        KeyFieldName="ATE_ID_EXAMEN" 
                                        OnAfterPerformCallback="dgvExamenes_AfterPerformCallback" 
                                        OnPageIndexChanged="dgvExamenes_PageIndexChanged" Width="100%">
                                        <Columns>
                                            <dx:GridViewDataTextColumn FieldName="ATE_ID_EXAMEN" 
                                                ShowInCustomizationForm="True" Visible="False" VisibleIndex="0">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn Caption="Fecha" FieldName="ATE_FECHA" 
                                                ShowInCustomizationForm="True" VisibleIndex="1">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn Caption="Examen" FieldName="ATE_DESCRIPCION" 
                                                ShowInCustomizationForm="True" VisibleIndex="2">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn Caption="Medico" FieldName="MEDICO" 
                                                ShowInCustomizationForm="True" VisibleIndex="3">
                                            </dx:GridViewDataTextColumn>
                                        </Columns>
                                        <SettingsBehavior AllowFocusedRow="True" />
                                        <SettingsPager PageSize="5" ShowDefaultImages="False">
                                            <AllButton Text="All">
                                            </AllButton>
                                            <NextPageButton Text="Next &gt;">
                                            </NextPageButton>
                                            <PrevPageButton Text="&lt; Prev">
                                            </PrevPageButton>
                                        </SettingsPager>
                                        <Images SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                            <LoadingPanelOnStatusBar Url="~/App_Themes/PlasticBlue/GridView/gvLoadingOnStatusBar.gif">
                                            </LoadingPanelOnStatusBar>
                                            <LoadingPanel Url="~/App_Themes/PlasticBlue/GridView/Loading.gif">
                                            </LoadingPanel>
                                        </Images>
                                        <ImagesFilterControl>
                                            <LoadingPanel Url="~/App_Themes/PlasticBlue/Editors/Loading.gif">
                                            </LoadingPanel>
                                        </ImagesFilterControl>
                                        <Styles CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" 
                                            CssPostfix="PlasticBlue">
                                            <Header ImageSpacing="10px" SortingImageSpacing="10px">
                                            </Header>
                                        </Styles>
                                        <StylesEditors>
                                            <CalendarHeader Spacing="11px">
                                            </CalendarHeader>
                                            <ProgressBar Height="50px">
                                            </ProgressBar>
                                        </StylesEditors>
                                        <ClientSideEvents RowDblClick="function(s, e){ DetallePopUp(2); } " />
                                    </dx:ASPxGridView>
                                </td>
                            </tr>
                            <tr>
                                <td class="izq">
                                    <dx:ASPxLabel ID="lblHisHost" runat="server" Text="Hospitalizaciones">
                                    </dx:ASPxLabel>
                                </td>
                                <td class="der">
                                    <dx:ASPxGridView ID="dgvHospitalizaciones" runat="server" 
                                        CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                                        KeyFieldName="REC_ID_RESERVACION_CAMAS" 
                                        OnAfterPerformCallback="dgvHospitalizaciones_AfterPerformCallback" 
                                        OnPageIndexChanged="dgvHospitalizaciones_PageIndexChanged" Width="100%">
                                        <Columns>
                                            <dx:GridViewDataTextColumn FieldName="REC_ID_RESERVACION_CAMAS" 
                                                ShowInCustomizationForm="True" Visible="False" VisibleIndex="0">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn Caption="Fecha de Reserva" 
                                                FieldName="REC_FECHA_HORA_RESERVA" ShowInCustomizationForm="True" 
                                                VisibleIndex="1">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn Caption="Fecha de Ingreso" 
                                                FieldName="REC_FECHA_HORA_INGRESO" ShowInCustomizationForm="True" 
                                                VisibleIndex="2">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn Caption="Medico Tratante" FieldName="MEDICO" 
                                                ShowInCustomizationForm="True" VisibleIndex="3">
                                            </dx:GridViewDataTextColumn>
                                        </Columns>
                                        <SettingsBehavior AllowFocusedRow="True" />
                                        <SettingsPager PageSize="5" ShowDefaultImages="False">
                                            <AllButton Text="All">
                                            </AllButton>
                                            <NextPageButton Text="Next &gt;">
                                            </NextPageButton>
                                            <PrevPageButton Text="&lt; Prev">
                                            </PrevPageButton>
                                        </SettingsPager>
                                        <Images SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                            <LoadingPanelOnStatusBar Url="~/App_Themes/PlasticBlue/GridView/gvLoadingOnStatusBar.gif">
                                            </LoadingPanelOnStatusBar>
                                            <LoadingPanel Url="~/App_Themes/PlasticBlue/GridView/Loading.gif">
                                            </LoadingPanel>
                                        </Images>
                                        <ImagesFilterControl>
                                            <LoadingPanel Url="~/App_Themes/PlasticBlue/Editors/Loading.gif">
                                            </LoadingPanel>
                                        </ImagesFilterControl>
                                        <Styles CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" 
                                            CssPostfix="PlasticBlue">
                                            <Header ImageSpacing="10px" SortingImageSpacing="10px">
                                            </Header>
                                        </Styles>
                                        <StylesEditors>
                                            <CalendarHeader Spacing="11px">
                                            </CalendarHeader>
                                            <ProgressBar Height="25px">
                                            </ProgressBar>
                                        </StylesEditors>
                                        <ClientSideEvents RowDblClick="function(s, e){ DetallePopUp(3); } " />
                                    </dx:ASPxGridView>
                                </td>
                            </tr>
                            <tr>
                                <td class="izq">
                                    <dx:ASPxLabel ID="lblMed" runat="server" Text="Medicamentos">
                                    </dx:ASPxLabel>
                                </td>
                                <td class="der">
                                    <dx:ASPxGridView ID="dgvMedicamentos" runat="server" 
                                        CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                                        KeyFieldName="PRO_ID_PRODUCTO" 
                                        OnAfterPerformCallback="dgvMedicamentos_AfterPerformCallback" 
                                        OnPageIndexChanged="dgvMedicamentos_PageIndexChanged" Width="100%">
                                        <Columns>
                                            <dx:GridViewDataTextColumn FieldName="PRO_ID_PRODUCTO" 
                                                ShowInCustomizationForm="True" Visible="False" VisibleIndex="0">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn Caption="Nro de Receta" FieldName="ATR_NRO_RECETA" 
                                                ShowInCustomizationForm="True" VisibleIndex="1">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn Caption="Fecha de Receta" FieldName="ATR_FECHA" 
                                                ShowInCustomizationForm="True" VisibleIndex="2">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn Caption="Medicamento" FieldName="PRO_DES_PRODUCTO" 
                                                ShowInCustomizationForm="True" VisibleIndex="3">
                                            </dx:GridViewDataTextColumn>
                                        </Columns>
                                        <SettingsBehavior AllowFocusedRow="True" />
                                        <SettingsPager PageSize="5" ShowDefaultImages="False">
                                            <AllButton Text="All">
                                            </AllButton>
                                            <NextPageButton Text="Next &gt;">
                                            </NextPageButton>
                                            <PrevPageButton Text="&lt; Prev">
                                            </PrevPageButton>
                                        </SettingsPager>
                                        <Images SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                            <LoadingPanelOnStatusBar Url="~/App_Themes/PlasticBlue/GridView/gvLoadingOnStatusBar.gif">
                                            </LoadingPanelOnStatusBar>
                                            <LoadingPanel Url="~/App_Themes/PlasticBlue/GridView/Loading.gif">
                                            </LoadingPanel>
                                        </Images>
                                        <ImagesFilterControl>
                                            <LoadingPanel Url="~/App_Themes/PlasticBlue/Editors/Loading.gif">
                                            </LoadingPanel>
                                        </ImagesFilterControl>
                                        <Styles CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" 
                                            CssPostfix="PlasticBlue">
                                            <Header ImageSpacing="10px" SortingImageSpacing="10px">
                                            </Header>
                                        </Styles>
                                        <StylesEditors>
                                            <CalendarHeader Spacing="11px">
                                            </CalendarHeader>
                                            <ProgressBar Height="25px">
                                            </ProgressBar>
                                        </StylesEditors>
                                        <ClientSideEvents RowDblClick="function(s, e){ DetallePopUp(4); } " />
                                    </dx:ASPxGridView>
                                </td>
                            </tr>
                            <tr>
                                <td class="izq">
                                    &nbsp;
                                </td>
                                <td class="der">
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td align="center" colspan="2" style="padding: 0 20px 0 0;">
                                    <dx:ASPxButton ID="ASPxButton1" runat="server" AutoPostBack="False" 
                                        Checked="True" ClientIDMode="AutoID" Text="Aceptar">
                                        <ClientSideEvents Click="function(s, e) {pcDetalleAtencion.Hide();}" />
                                        <CheckedStyle BackColor="#000066" Font-Bold="True" Font-Names="Georgia" 
                                            ForeColor="White">
                                        </CheckedStyle>
                                        <HoverStyle BackColor="#000099" Font-Bold="True" Font-Names="Georgia" 
                                            ForeColor="White">
                                        </HoverStyle>
                                    </dx:ASPxButton>
                                    <dx:ASPxButton ID="btnDetalleDiagnostico" runat="server" AutoPostBack="false" 
                                        ClientInstanceName="btnDetalleDiagnostico" ClientVisible="false" 
                                        OnClick="DetalleDiagnostico">
                                    </dx:ASPxButton>
                                    <dx:ASPxButton ID="btnDetalleExamenes" runat="server" AutoPostBack="false" 
                                        ClientInstanceName="btnDetalleExamenes" ClientVisible="false" 
                                        OnClick="DetalleExamenes">
                                    </dx:ASPxButton>
                                    <dx:ASPxButton ID="btnDetalleHospitalizaciones" runat="server" 
                                        AutoPostBack="false" ClientInstanceName="btnDetalleHospitalizaciones" 
                                        ClientVisible="false" OnClick="DetalleHospitalizaciones">
                                    </dx:ASPxButton>
                                    <dx:ASPxButton ID="btnDetalleMedicamentos" runat="server" AutoPostBack="false" 
                                        ClientInstanceName="btnDetalleMedicamentos" ClientVisible="false" 
                                        OnClick="DetalleMedicamentos">
                                    </dx:ASPxButton>
                                </td>
                            </tr>
                        </table>
                    </dx:PopupControlContentControl>
                </ContentCollection>
            </dx:ASPxPopupControl>
            <br />
            <dx:ASPxPopupControl ID="pccitas" runat="server" 
                ClientInstanceName="pccitas" 
                CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" 
                CloseAction="CloseButton" HeaderText="Consulta de Citas:" Modal="True" 
                PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                ScrollBars="Vertical" Width="690px" Height="450px" 
                ShowPageScrollbarWhenModal="True">
                <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                </LoadingPanelImage>
                <CloseButtonStyle>
                    <Paddings Padding="0px" />
                </CloseButtonStyle>
                <ContentStyle>
                    <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                </ContentStyle>
                <HeaderStyle>
                <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" 
                    PaddingTop="4px" />
                </HeaderStyle>
                <ContentCollection>
                    <dx:PopupControlContentControl runat="server" SupportsDisabledAttribute="True">
                        <table class="style1">
                            <tr>
                                <td>
                                    <dx:ASPxGridView ID="gvcitas" runat="server" AutoGenerateColumns="False" 
                                        CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                                        KeyFieldName="CIT_ID_CITA" 
                                        OnAfterPerformCallback="gvcitas_AfterPerformCallback" 
                                        OnPageIndexChanged="gvcitas_PageIndexChanged" EnableCallBacks="False" 
                                        OnCustomButtonCallback="gvcitas_CustomButtonCallback">
                                        <Columns>
                                            <dx:GridViewDataTextColumn Caption="Cita" FieldName="CIT_ID_CITA" 
                                                ShowInCustomizationForm="True" VisibleIndex="0" Width="40px">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn Caption="Hora de Inicio" FieldName="HOR_HORARIO" 
                                                ShowInCustomizationForm="True" VisibleIndex="2">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn Caption="Estado" FieldName="ESC_DESCRIPCION" 
                                                ShowInCustomizationForm="True" VisibleIndex="4">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn Caption="IdAtencion" FieldName="ATE_ID_ATENCION" 
                                                ShowInCustomizationForm="True" Visible="False" VisibleIndex="5">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn Caption="Paciente" FieldName="paciente" 
                                                ShowInCustomizationForm="True" VisibleIndex="3" Width="250px">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataDateColumn Caption="Fecha Cita" FieldName="CIT_FECHA" 
                                                ShowInCustomizationForm="True" VisibleIndex="1">
                                            </dx:GridViewDataDateColumn>
                                            <dx:GridViewCommandColumn Caption="Opcion" ShowInCustomizationForm="True" 
                                                VisibleIndex="6">
                                                <ClearFilterButton Visible="True">
                                                </ClearFilterButton>
                                                <CustomButtons>
                                                    <dx:GridViewCommandColumnCustomButton ID="btnpostergar" Text="Postergar Cita">
                                                    </dx:GridViewCommandColumnCustomButton>
                                                </CustomButtons>
                                            </dx:GridViewCommandColumn>
                                            <dx:GridViewDataTextColumn Caption="Observacion" FieldName="CIT_OBSERVACION" 
                                                ShowInCustomizationForm="True" Visible="False" VisibleIndex="8">
                                            </dx:GridViewDataTextColumn>
                                        </Columns>
                                        <SettingsBehavior AllowFocusedRow="True" />
                                        <SettingsPager PageSize="7" ShowDefaultImages="False">
                                            <AllButton Text="All">
                                            </AllButton>
                                            <NextPageButton Text="Next &gt;">
                                            </NextPageButton>
                                            <PrevPageButton Text="&lt; Prev">
                                            </PrevPageButton>
                                        </SettingsPager>
                                        <Settings ShowFilterRow="True" ShowGroupPanel="True" />
                                        <Images SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                            <LoadingPanelOnStatusBar Url="~/App_Themes/PlasticBlue/GridView/gvLoadingOnStatusBar.gif">
                                            </LoadingPanelOnStatusBar>
                                            <LoadingPanel Url="~/App_Themes/PlasticBlue/GridView/Loading.gif">
                                            </LoadingPanel>
                                        </Images>
                                        <ImagesFilterControl>
                                            <LoadingPanel Url="~/App_Themes/PlasticBlue/Editors/Loading.gif">
                                            </LoadingPanel>
                                        </ImagesFilterControl>
                                        <Styles CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" 
                                            CssPostfix="PlasticBlue">
                                            <Header ImageSpacing="10px" SortingImageSpacing="10px">
                                            </Header>
                                        </Styles>
                                        <StylesEditors>
                                            <CalendarHeader Spacing="11px">
                                            </CalendarHeader>
                                            <ProgressBar Height="25px">
                                            </ProgressBar>
                                        </StylesEditors>
                                    </dx:ASPxGridView>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                   <div style="float: left; padding: 10px">
                                       <dx:ASPxButton ID="btnaceptarcita" runat="server" 
                                           CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                                           OnClick="btnaceptarcita_Click" 
                                           SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" Text="Aceptar">
                                           <ClientSideEvents Click="function(s, e) {
	pccitas.Hide();
}" />
                                       </dx:ASPxButton>
                                    </div>
                                   <div style="float: left; padding: 10px">
                                       <dx:ASPxButton ID="btncancelarcita" runat="server" 
                                           CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                                           SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" Text="Cancelar">
                                           <ClientSideEvents Click="function(s, e) {
	pccitas.Hide();
}" />
                                       </dx:ASPxButton>
                                    </div></td>
                            </tr>
                        </table>
                        <br />
                    </dx:PopupControlContentControl>
                </ContentCollection>
            </dx:ASPxPopupControl>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
